#define _CRT_SECURE_NO_WARNINGS 1
#include<bits/stdc++.h>
using namespace std;
#define ll long long
const int N = 1e5 + 10;
int a[N], n;
ll sum;

int main() {
    ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
    cin >> n;
    int minx = 20010;
    for (int i = 1; i <= n; i++) {
        cin >> a[i];
        sum += a[i];
        if (a[i] % 2) minx = min(minx, a[i]);
    }
    if (sum % 2 == 0) cout << sum << '\n';
    else cout << sum - minx << '\n';
    return 0;
}